const CHANNEL_KEY = 'hmtt80_channel'

// 保存到本地存储
export const saveChannel = (list) => {

    window.localStorage.setItem(CHANNEL_KEY, JSON.stringify(list));
}

// 获取本地存储
export const getChannel = () => {

    return JSON.parse(localStorage.getItem(CHANNEL_KEY))
}

// 删除本地存储
export const delChannel = () => {
    localStorage.removeItem(CHANNEL_KEY)
}